package com.winit.feature.repository;

import com.winit.feature.model.FeatureReqId;
import com.winit.feature.model.FeatureReq;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface FeatureReqRepository extends CrudRepository<FeatureReq, FeatureReqId>{

    @Query("select * from matrix_feature_req where req_id = ?0 allow filtering")
    List<FeatureReq> findsByReqId(String reqId);
    @Query("select * from matrix_feature_req where feature_id = ?0 allow filtering")
    List<FeatureReq> findFeatureReqByFeatureId(String featureId);

}
